/**
 * 后台API URL
 * @author wdb
 * @param name
 */
var urls = {};
urls['rCategory'] = "/category/rCategory";//资讯分类
urls['cCategory'] = "/category/cCategory";//添加分类
urls['uCategory'] = "/category/uCategory";//修改分类名
urls['dCategory'] = "/category/dCategory";//删除分类
urls['rCourse'] = "/course/rCourse";//查询课程
urls['rmajor'] = "/major/rMajor";//查询专业
urls['cCourse'] = "/course/cCourse";//添加课程
urls['dCourse'] = "/course/dCourse";//删除课程
urls['uCourse'] = "/course/uCourse";//修改课程
urls['rQuestion'] = "/question/rQuestion";//查找题库
urls['cQuestion'] = "/question/cQuestion";//添加题目
urls['dQuestion'] = "/question/dQuestion";//删除题目
urls['uQuestion'] = "/question/uQuestion";//修改题目
urls['rOptions'] = "/question/rOptions";//查询问题对应选项

urls['check'] = "/session/check";

urls['rLecture'] = "/lecture/rLecture";//查询课时
urls['dLecture'] = "/lecture/dLecture";//删除课时
urls['uLecture'] = "/lecture/uLecture";//修改课时
urls['cLecture'] = "/lecture/cLecture";//新增课时

urls['rJoint'] = "/joint/rJoint";//查询节点
urls['cJoint'] = "/joint/cJoint";//增加节点
urls['dJoint'] = "/joint/dJoint";//删除节点
urls['uJoint'] = "/joint/uJoint";//编辑节点

urls['check'] = "/adminUser/SessionCheck"



urls['rUser'] = "/user/rUser"//用户管理
urls['freeze'] = "/user/freeze"//封号
urls['unfreeze'] = "/user/unfreeze"//解封

//资讯模块
urls['rInfo'] = "/information/rInfo";//查询资讯列表
urls['cInfo'] = "/information/cInfo";//创建添加资讯
urls['dInfo'] = "/information/dInfo";//删除资讯
urls['uInfo'] = "/information/uInfo";//编辑资讯
urls['rCategory'] = "/category/rCategory";//获取分类



urls['rTestPeople']="/paper/rTestPeople";//获取考试人数列表
urls['rTestResult']="/paper/rTestResult";//获取考试结果列表


urls['rCitiao'] = "/vocabulary/rVocabulary";//查询词条
urls['sCitiao'] = "/vocabulary/searchVocabulary";//搜索词条
urls['cCitiao'] = "/vocabulary/cVocabulary";//添加词条
urls['dCitiao'] = "/vocabulary/dVocabulary";//删除词条
urls['uCitiao'] = "/vocabulary/uVocabulary";//修改词条
urls['rCitiao_pinglun'] = "/vocabulary/rVocComment";//查询词条评论
urls['dCitiao_pinglun'] = "/vocabulary/dVocComment";//删除词条评论
urls['rTrouble'] = "/trouble/rTrouble";//查询问题列表
urls['sTrouble'] = "/trouble/searchTrouble";//搜索问题
urls['dTrouble'] = "/trouble/dTrouble";//删除问题
urls['sAnswer'] = "/answer/searchAnswer";//搜索回答
urls['cAnswer'] = "/answer/cAdminAnswer";//专家回答
urls['rAnswer'] = "/answer/rAnswer";//回答列表
urls['dAnswer'] = "/answer/dAnswer";//删除问答
urls['login'] = "/login/doLogin";//登录

urls['rCourseS']="/course/rCourseS";//查询课程名称
urls['rLectureS']="/lecture/rLectureS";//查询课时名称
urls['cCase']="/example/cExample";//增加案例
urls['rCase']="/example/rExample";//搜索案例
urls['uCase']="/example/uExample";//编辑案例
urls['dCase']="/example/dExample";//删除案例


urls['cTeacher']="/teacher/cTeacher";//添加教师
urls['rTeacher']="/teacher/rTeacher";//搜索教师
urls['uTeacher']="/teacher/uTeacher";//编辑教师
urls['dTeacher']="/teacher/dTeacher";//删除教师

//认证模块
urls['rUnCheckCList'] = "/certificateapply/rUnCheckCList"//待审核
urls['rCheckedCList'] = "/certificateapply/rCheckedCList"//已审核
urls['rCertificateDetails'] = "/certificateapply/rCertificateDetails"//查看申请详情
urls['getItPassed'] = "/certificateapply/getItPassed"//通过申请
urls['getItRefused'] = "/certificateapply/getItRefused"//拒绝申请
urls['searchNameUnChecked'] = "/certificateapply/searchNameUnChecked"//搜索待审核
urls['searchNameChecked'] = "/certificateapply/searchNameChecked"//搜索已经审核

urls['getAuthList'] = "/certificateapply/getAuthList"//已审核
urls['rCertificate'] = "/certificate/rCertificate"//获取证书列表
urls['rSimpleCertificate'] = "/certificate/rSimpleCertificate"//获取证书列表
urls['uCertificate']="/certificate/uCertificate";//编辑教师



//图片轮播
urls['rPicture'] = "/picture/rPicture"//获取轮播图片
urls['cPicture'] = "/picture/cPicture"//添加图片
urls['dPicture'] = "/picture/dPicture"//删除图片
//专业
urls["major"]="/major/rMajor";
urls["addMajor"]="/major/cMajor";
urls["delMajor"]="/major/dMajor";
urls["getMajor"]="/major/getById";
urls["updateMajor"]="/major/uMajor";

//邀请码
urls["genInvite"]="/invitationcode/gen";
urls["invite"]="/invitationcode/list";
function geturl(url) {
    return urls[url] ? urls[url] : url;
}

exports.geturl = geturl;

